﻿import * as path from 'path';

// 当前文件的路径
const currentPath ='/home/zr/tmp/SmartStudio/bin/SmartStudio'; // 获取当前目录
// const currentPath = path.resolve('./'); // 也可以用相对路径

// 获取上一级路径
const parentPath = path.resolve(currentPath, '..');

console.log('当前路径:', currentPath);
console.log('上一级路径:', parentPath);
